package com.abel.feign.controller;

import com.abel.feign.service.ScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: Abel.lin
 * Date: Created in 2018/10/10 14:25
 * Company: Abel.Studio
 * Copyright: Copyright (c) 2017
 * Description:
 */
@RestController
public class IndexController {
    @Autowired
    ScheduleService scheduleService;

    @GetMapping("hello")
    public String hello(){
        return scheduleService.hello();
    }

    @GetMapping("bye")
    public String bye(@RequestParam(value = "name")String name){
        return scheduleService.bye(name);
    }

    @GetMapping("test2")
    public String test(){
        return scheduleService.test2();
    }


}
